package io.geekidea.boot.supplier.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.geekidea.boot.supplier.entity.Supplier;
import io.geekidea.boot.supplier.mapper.SupplierMapper;
import io.geekidea.boot.supplier.service.SupplierService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements SupplierService {

    @Resource
    private SupplierMapper supplierMapper;
    @Override
    public Boolean delById(Integer id) {

        return supplierMapper.delByIdInt(id)>0;
    }
}
